package com.redside.model.lookup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * This class represents the lookup class that holds the name/value pairs for
 * states.
 * 
 * @author <a href="mailto:pchapman@redsidesoftware.com">Peter Chapman</a>
 */

@Entity
@Table(name = "state_lkp")
public class StateLkp implements java.io.Serializable {

    private static final long serialVersionUID = 353805758153525928L;
    private String stateId;
	private String name;

	public StateLkp() {
	}
	
    public StateLkp(String stateId, String state) {
        this.stateId=stateId;
        this.name=state;
    }	

    /**
     * @return the state_id
     */
    @Id
    @Column( name="state_id", unique=true, nullable=false, updatable=false )
    public String getStateId() {
        return stateId;
    }

	@Column(name = "name", nullable = false, length = 50)
	public String getName() {
		return this.name;
	}


    /**
     * @param state_id the state_id to set
     */
    public void setStateId(String stateId) {
        this.stateId = stateId;
    }

    public void setName(String name) {
		this.name = name;
	}
}
